<template>
    <div>
        我是基本属性
        <Button type="primary">3443</Button>
        <component :is="contextHolder" />
    </div>
</template>

<script setup lang="ts">
import {Button} from "ant-design-vue"
import {ref} from "vue"


import {ModalFc} from './projectmodal'

// import modal from './projectmodal'
let contextHolder = ref<any>(null)

import B from "./B.vue"
let test =ModalFc(B, {title: 'B组件的props'}, {})


// let test =modal({visible: '6的props49',onSidebarClick:(par)=>{
//     alert(par)
// }},)


setTimeout(() => {
   contextHolder.value = test
}, 1000);
// import {ShowComponent} from "./tsx.jsx"
// setTimeout(() => {
//     console.log("执行方法")
    
// }, 1000);
// ShowComponent()

</script>

<style scoped>

</style>./tsx.jsx